#include <stdio.h>
#include <stdlib.h>
#include "E:\Desktop\data_struct\5TREE\1_bin_tree\creat.h"
void add(tree *&root, tree *&root_2)
{
	if (!root->left)
	{
		root->left = root_2;
	}
	else
	{
		root_2->right = root;
		root = root_2;
	}
}

int main()
{
	/*******************code*******************/
	tree *root, *root_2;
	int n = 3;
	int a[15] = {1,
				 2, NULL};
	CreatTree(root, a, n, 0);
	int a2[15] = {3,
				  4, NULL};
	CreatTree(root_2, a2, n, 0);
	midorder_traversal(root);
	printf("\n\n****************************\n");
	add(root, root_2);
	midorder_traversal(root);
	/******************************************/
	printf("\n\n****************************\n");
	printf("Press Enter key to continue\n");
	getchar();
	return 0;
	/******************************************/
}
